package org.zjx.analysis.analyze.tap;

import org.zjx.command.util.ImageUtil;
import org.zjx.window.window.IWindow;

import java.awt.*;
import java.awt.image.BufferedImage;
import java.util.Collections;

public class DHWTabAnalysis extends BaseTabAnalysis{

    public DHWTabAnalysis(IWindow window) {
        super("东海湾",window);
    }

    @Override
    public Rectangle getContentArea() {
        return ImageUtil.createRect(10, 80, 285, 355);
    }

    @Override
    protected void initResources() {

    }

    @Override
    public Rectangle closeArea() {
        return null;
    }

    @Override
    public Rectangle getOriginBounds() {
        return ImageUtil.createRect(214, 94, 584, 479);
    }

    @Override
    public Rectangle getRefImageArea() {
        return ImageUtil.createRect(164, 24, 205, 37);
    }

    @Override
    public BufferedImage getRefImage() {
        BufferedImage bufferedImage =   ImageUtil.createImage("iVBORw0KGgoAAAANSUhEUgAAACoAAAAOCAYAAABZ/o57AAAEiklEQVR4Xo1VC1NTVxDOH+vwcJhia2UIAcEMDiBCQQtRoCggIjJQQh2eEZCEKA8TIBhISA0PBxBRXkLk1QRFYngFEMpbUOn27F7vbUIc2p355uz5dvfsd849JxF5SarAFd+Jq0CpGYHwxCbyT8Kdwi63eY1uDK5kGD3yePA9zsVp3HryiEtrhd6BOQ8eITpO+IVVA9qNvHaBO94Q4Rt8n/I+fT5iNWr4XvqA5mjLqzseWHRuwwVZE0hiHlHOm7kP4BuihGeDdiHny9HfFDs4/CJwE1YnJzQ6RQ89L+doJ4h3jg1K7huyC1zvwDvB73kxC5FXG8FLXAGBUTWU294zA4NjDvJ1pkmG8a/jv2g0TkDAxTrwDlbC5XQD5cqyTFCk7AdjpxVW1/eEerTtnQMws3Xx62KN6NrtNnAsbsL8Egfe+PlxYG5iZisJRXgHVcDDphGqKVX3Q93jUdAaLIQGw2uCpsUCEbJG8JHcdwMKKFa9oFqtYRyO2Ikij6Opywpv2alPz6wQJ3ItvJTcTEU/p+ppHpvaDBeTmsBbUuEGFJiRb4bnQ3PgF1rFhL4CeXkPbGzuU/3m1kfY2T2kEYG2tr5Law5bFmB37x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